package com.wongleoi.weather_demo.model

import android.os.Parcelable
import kotlinx.parcelize.Parcelize

/**

* @author wongleoi

* @classname Weather.kt

* @describe  城市天气信息

* @time 2022/7/15 15:31

*/
@Parcelize
data class Weather(
    val city: String,//城市名称
    val adcode: String,//城市编码
    val province: String,//省份名称
    val reporttime: String,//预报发布时间
    val casts: List<WeatherInfo>,//预报数据
): Parcelable {
    @Parcelize
    data class WeatherInfo(
        val date: String,//日期
        val week: String,//星期几
        val dayweather: String,//白天天气现象
        val nightweather: String,//晚上天气现象
        val daytemp: String,//白天温度
        val nighttemp: String,//晚上温度
        val daywind: String,//白天风向
        val nightwind: String,//晚上风向
        val daypower: String,//白天风力
        val nightpower: String//晚上风力
    ): Parcelable
}